<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME}_智能办公系统-${attachName}</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
        <script type="text/javascript" src="../jquery.min.js"></script>
        <script type="text/javascript">
            var openModeType = "${parameter.openModeType}";

            function Save() {
                document.getElementById("PageOfficeCtrl1").WebSave();
            }

            function SaveAsPDF() {
                document.getElementById("PageOfficeCtrl1").WebSaveAsPDF();
            }

            function AddSeal() {
                try {
                    document.getElementById("PageOfficeCtrl1").ZoomSeal.AddSeal();
                } catch (e) {
                }
                ;
            }

            function PrintFile() {
                document.getElementById("PageOfficeCtrl1").ShowDialog(4);
            }

            function IsFullScreen() {
                document.getElementById("PageOfficeCtrl1").FullScreen = !document.getElementById("PageOfficeCtrl1").FullScreen;
            }

            function CloseFile() {
                window.external.close();
            }

            function AfterDocumentOpened() {
                if (openModeType == "1") {
                    document.getElementById("PageOfficeCtrl1").SetEnableFileCommand(4, false); //禁止另存
                    document.getElementById("PageOfficeCtrl1").SetEnableFileCommand(5, false); //禁止打印
                    document.getElementById("PageOfficeCtrl1").SetEnableFileCommand(6, false); //禁止页面设置
                    document.getElementById("PageOfficeCtrl1").SetEnableFileCommand(8, false); //禁止打印预览
                } else if (openModeType == "2" || openModeType == "3") {
                    document.getElementById("PageOfficeCtrl1").SetEnableFileCommand(4, true); //禁止另存
                } else if(openModeType == "4"||openModeType == "5"){
                    document.getElementById("PageOfficeCtrl1").Document.ActiveWindow.View.SplitSpecial = 18;
                }else {
                    document.getElementById("PageOfficeCtrl1").SetEnableFileCommand(4, true); //禁止另存
                }
            }
        </script>
    <style>
        div{    /* div的CSS样式  */
            position : absolute;
            width : 100%;
            height : 100%;
        }
        *{        /* CSS Reset */
            margin : 0;
            padding : 0;
        }
    </style>
    </head>
<body>
<div>${pageoffice}</div>
<form action="">
    <input type="hidden" name="attachId" id="attachId" value="${attachId}">
</form>
</body>
</html>
